package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbProxyDividendDetailsDao;
import com.gtw.modules.entity.TbProxyDividendDetails;
import com.gtw.modules.sys.service.TbProxyDividendDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/** 代理分红明细
 * Created by wuye on 2018/3/20.
 */
@Service
public class TbProxyDividendDetailsServiceImpl implements TbProxyDividendDetailsService {

    @Autowired
    private TbProxyDividendDetailsDao tbProxyDividendDetailsDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tbProxyDividendDetailsDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TbProxyDividendDetails record) {
        return tbProxyDividendDetailsDao.insert(record);
    }

    @Override
    public int insertSelective(TbProxyDividendDetails record) {
        return tbProxyDividendDetailsDao.insertSelective(record);
    }

    @Override
    public TbProxyDividendDetails selectByPrimaryKey(Integer id) {
        return tbProxyDividendDetailsDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TbProxyDividendDetails record) {
        return tbProxyDividendDetailsDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TbProxyDividendDetails record) {
        return tbProxyDividendDetailsDao.updateByPrimaryKey(record);
    }

    @Override
    public List<TbProxyDividendDetails> queryBybenefit(Integer benefitUserid) {
        return tbProxyDividendDetailsDao.queryBybenefit(benefitUserid);
    }

    @Override
    public List<TbProxyDividendDetails> queryBytrigger(Integer triggerUserid) {
        return tbProxyDividendDetailsDao.queryBytrigger(triggerUserid);
    }
}
